#pragma once

#include "Includes.h"
#include "Constants.h"
#include "FindPattern.h"
#include "Utilities.h"

typedef BOOL (__stdcall* QueryPerformanceCounter_t)(LARGE_INTEGER*);

BOOL __stdcall QPC_Hook(LARGE_INTEGER* Counter);

class Speedhack
{
public:
	bool Active;
	float Multiplier;
	LONGLONG OldReal;
	LONGLONG OldFake;
private:
public:
	void Init();
	void Enable();
	void Disable();
	void Set(bool Active);
	void SetMultiplier(float Multiplier);
	void ComputeFakeCount(LARGE_INTEGER* Count);
};

extern Speedhack g_pSpeedhack;
extern QueryPerformanceCounter_t QPC_Orig;
